<%@ page import="com.heima.jopo.obj.UserInfo" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
  <meta charset="utf-8">
  <script src="js/jquery-3.6.0.js">
     $(function (){
       $("#upxg").click(function (){

         var zh = $("#idd").val();  //账号
         var pwd = $("#nameid").val();  //密码

         var span1 = $("#lb1");
         if (zh == "") {
           span1.html("账户不能为空");
           return;
         }


         var span2 = $("#lb2");

         span2.html("");
         if (pwd == "") {
           span2.html("密码不能为空");
           return;
         }
         if (pwd.length < 6) {
           span2.html("密码必须等于或大于6个字符");
           return;
         }

          $(".tj").submit();
       })

     })
  </script>
</head>
<body>
<h2>请修改</h2>


<form action="date2" method="get" class="tj">

  <table width="100%">

    <tr>
      <td align="right">账户:</td>
      <td><input type="text" name="zh"  id="idd" value="${usinfo.phone}"/></td>
      <td> <input type="hidden" value="${uid1}" name="pid"></td>
      <span id="lb1"></span>

    </tr>
    <td></td>
    <tr>
      <td align="right">创建密码:</td>
      <td><input type="password" name="pwd"  id="nameid" value="${usinfo.passwrod}"/></td>
      <span id="lb2"></span>
    </tr>

    <tr>
      <td align="right">真实姓名:</td>
      <td><input type="text" name="username" value="${usinfo.username}"/></td>
    </tr>

    <tr>
      <td align="right">性别:</td>
      <td><input type="radio" name="sex" value="nv"/>女<input type="radio" name="sex" value="nan"/>男</td>
    </tr>

    <tr>
      <td align="right">出生年月:</td>
      <td>
        <select name="year" />
        <option value="1996">1996</option>
        <option value="1996">1997</option>
        <option value="1996">1998</option>
        <option value="1996">1999</option>
        </select>年

        <select name="mounth" />
        <option value="1">1</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        </select>月

        <select name="day" />
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        </select>日
      </td>

    </tr>
    <tr>
      <td align="right">职业:</td>
      <td>
        <select name="now" />
        <option value="student">学生</option>
        <option value="work">工作</option>
        <option value="teacher">教师</option>
        </select>

      </td>

    </tr>

    </tr>
    <tr>
    </tr>

    <td align="right">发送验证码:</td>
    <td><input type="text" name="check"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text"></td>

    <tr>
    </tr>

    <td>&nbsp</td>
    <td><input type="submit" value="确认修改" name="zc" id="upxg">
      <input type="reset" value="重置" name="cz">
    </td>
    <tr>


  </table >

</form>


</body>
</html>
